<%@ page import="org.apache.commons.lang.StringUtils"%>
<%@ page contentType="text/xml;charset=UTF-8" %>
<%@ page import="com.hz.supermanage.dao.*,com.hz.supermanage.bean.*" %>
<%
request.setCharacterEncoding("UTF-8");
String uuid = request.getParameter("uuid");
    String parentNameOrg="";
    String parentName="";
    if (StringUtils.isBlank(uuid)) {
        //throw new BusinessException("岗位标识不能为空");
    }
    ProgramaDao dao = new ProgramaDao();
    HzsysPrograma pro = new HzsysPrograma();
    try {
    	pro = dao.queryNodeInfo(uuid);
        String parentOrgId = pro.getParentid().toString();
         //查询部门名称
        HzsysPrograma par = dao.queryNodeInfo(parentOrgId);
        parentName = par.getProname();
        //查询机构名称
        HzsysPrograma parorg = dao.queryNodeInfo(par.getParentid().toString());
        parentNameOrg = parorg.getProname();
    }catch(Exception ex) {
        //throw new BusinessException("读取机构信息失败", ex);
    }
%>
<?xml version="1.0" encoding="UTF-8"?>
<xuice>
    <%=dao.generalTMIXml(pro)%>
    <parentnameOrg><![CDATA[<%=parentNameOrg%>]]></parentnameOrg>
    <parentname><![CDATA[<%=parentName%>]]></parentname>
</xuice>